package com.hospital.diagnosis.module.feign;

import com.hospital.common.base.Result;
import com.hospital.common.config.FeignConfig;
import com.hospital.common.dto.payment.module.OrderCreateDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "payment-module",configuration = FeignConfig.class)
public interface PaymentFeign
{
    @PostMapping("/payment/createOnlineDiagnosis")
    Result createOnlineDiagnosis(@RequestBody OrderCreateDto orderCreateDto);

    @PostMapping("/payment/create")
    Result create(@RequestBody OrderCreateDto orderCreateDto);
}
